package cn.dglydrpy.fundmanagement.dao.entiey;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;

@TableName("risk_assessment")
@Data
public class RiskAssessment {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("fund_code")
    private String fundCode;

    @TableField("portfolio_id")
    private Long portfolioId;

    @TableField("risk_level")
    private String riskLevel; // 1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险

    @TableField("volatility")
    private BigDecimal volatility; // 波动率

    @TableField("max_drawdown")
    private BigDecimal maxDrawdown; // 最大回撤

    @TableField("sharpe_ratio")
    private BigDecimal sharpeRatio; // 夏普比率

    @TableField("created_time")
    private String createdTime;

    @TableField("updated_time")
    private String updatedTime;

    @TableField("status")
    private String status;
}